<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!--
Beyond Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3
Version: 1.0.0
Purchase: http://wrapbootstrap.com
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<!--Head-->
<head>
<meta charset="utf-8" />
<title>管理员修改教师用户信息</title>

<meta name="description" content="register page" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon"
	href="<%=request.getContextPath()%>/commonadmin/assets/img/favicon.png"
	type="image/x-icon">

<!--Basic Styles-->
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/bootstrap.min.css"
	rel="stylesheet" />
<link id="bootstrap-rtl-link" href="" rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/font-awesome.min.css"
	rel="stylesheet" />

<!--Fonts-->
<link
	href="<%=request.getContextPath()%>/commonadmin/js/font-useso.js"
	rel="stylesheet" type="text/css">

<!--Beyond styles-->
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/beyond.min.css"
	rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/demo.min.css"
	rel="stylesheet" />
<link
	href="<%=request.getContextPath()%>/commonadmin/assets/css/animate.min.css"
	rel="stylesheet" />
<link id="skin-link" href="" rel="stylesheet" type="text/css" />

<!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
<script
	src="<%=request.getContextPath()%>/commonadmin/assets/js/skins.min.js"></script>
</head>
<script type="text/javascript">
$(function() {
	var validate = $("#teaForm").validate({
		debug : false, //调试模式取消submit的默认提交功能   
		//errorClass: "label.error", //默认为错误的样式类为：error   
		focusInvalid : false, //当为false时，验证无效时，没有焦点响应  
		onkeyup : false,
		submitHandler : function(form) { //表单提交句柄,为一回调函数，带一个参数：form   
		
		},

		rules : {
			
			realname : {
				required : true
			},

			username : {
				required : true
			},

			telephone : {
				required : true
			},

			user_money : {
				required : true
			},

		},
		messages : {
			
			realname : {
				required : "用户名不能为空",
			},
			
			username : {
				required : "账号不能为空",
			},

			telephone : {
				required : "手机号不能为空",
			},
			
			user_money : {
				required : "用户余额不能为空",
			}
		}

	});
});
	</script>
<!--Head Ends-->
<!--Body-->
<body>
	<form id="teaForm" action="<%=request.getContextPath()%>/admin/manage/teaRevise.htm" method="post"
		name="teaForm">
		<input type="hidden" value="${teaList.user_id }" name="user_id" />
		<div class="register-container animated fadeInDown">
			<div class="registerbox bg-white">
				<div class="registerbox-caption "></div>

				<div class="registerbox-title" style="text-align: center;">教师信息修改</div>
				<div class="registerbox-caption "></div>
				
				<div class="registerbox-textbox">
					<input type="text" class="form-control"
						value="${teaList.realname }" required name="realname" placeholder="用户名:" />
				</div>
				
				<div class="registerbox-textbox">
					<input type="text" class="form-control"
						value="${teaList.username }" required name="username" placeholder="用账号:" />
				</div>
				
				<div class="registerbox-textbox">
					<input type="text" class="form-control"
						value="${teaList.telephone }" required name="telephone" placeholder="手机号码:" />
				</div>
				
				<div class="registerbox-textbox" style="display: none">
					<input type="text" class="form-control"  value="${teaList.email }"
						name="email" placeholder="电子邮箱:" />
				</div>
			
				<div class="registerbox-textbox">
					<input type="text" class="form-control"
						value="${teaList.user_money }" required  name="user_money"
						placeholder="用户余额:" />
				</div>
				<div class="registerbox-caption "></div>
				
				<div>
				<c:if test="${teaList.user_sex.toString()=='0' }">
					<div style="height: 30px; width: 100%;">
						<div class="radio"
							style="float: left; width: 30%; margin-top: -5px; margin-left: 35px;">
							<label> <input name="form-field-radio" type="radio"
								class="colored-blue" value="0" checked="checked"> <span
								class="text"> 男</span>
							</label>
						</div>

						<div class="radio"
							style="float: left; width: 30%; margin-left: 70px;">
							<label> <input name="form-field-radio" type="radio"
								class="colored-danger" value="1"> <span class="text">
									女</span>
							</label>
						</div>
					</div>
				</c:if>
				<c:if test="${teaList.user_sex.toString()=='1' }">
					<div style="height: 30px; width: 100%;">
						<div class="radio"
							style="float: left; width: 30%; margin-top: -5px; margin-left: 35px;">
							<label> <input name="form-field-radio" type="radio"
								class="colored-blue" value="0"> <span class="text">
									男</span>
							</label>
						</div>

						<div class="radio"
							style="float: left; width: 30%; margin-left: 70px;">
							<label> <input name="form-field-radio" type="radio"
								class="colored-danger" value="1" checked="checked"> <span
								class="text"> 女</span>
							</label>
						</div>
					</div>
				</c:if>
				</div>

					<div class="registerbox-caption " style="text-align: center;">
						<a href="<%=request.getContextPath()%>/admin/manage/getResource.htm?user_id=${teaList.user_id }" target="_blank">
							认证图片
						</a>
					</div>	
					<div class="registerbox-caption "></div>	
				<div>
				<c:if test="${empty teaList.teacher_status}">
					<div style="width:100%;height:30px;">
					<div class="radio" style="float:left;">
						<label> <input name="status" type="radio"
							class="colored-blue" value="0" checked="checked"> 
							<span class="text">
								正在审核
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-success" value="1"> 
							<span class="text">
								审核通过
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-danger" value="2"> 
							<span class="text">
								审核驳回
							</span>
						</label>
					</div>
				</div>
				</c:if>
				<c:if test="${teaList.teacher_status.toString()=='0'}">
					<div style="width:100%;height:30px;">
					<div class="radio" style="float:left;">
						<label> <input name="status" type="radio"
							class="colored-blue" value="0" checked="checked"> 
							<span class="text">
								正在审核
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-success" value="1"> 
							<span class="text">
								审核通过
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-danger" value="2"> 
							<span class="text">
								审核驳回
							</span>
						</label>
					</div>
				</div>
				</c:if>
				<c:if test="${teaList.teacher_status.toString()=='1'}">
					<div style="width:100%;height:30px;">
					<div class="radio" style="float:left;">
						<label> <input name="status" type="radio"
							class="colored-blue" value="0" > 
							<span class="text">
								正在审核
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-success" value="1" checked="checked"> 
							<span class="text">
								审核通过
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-danger" value="2"> 
							<span class="text">
								审核驳回
							</span>
						</label>
					</div>
				</div>
				</c:if>
				<c:if test="${teaList.teacher_status.toString()=='2'}">
				<div style="width:100%;height:30px;">
					<div class="radio" style="float:left;">
						<label> <input name="status" type="radio"
							class="colored-blue" value="0" > 
							<span class="text">
								正在审核
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-success" value="1"> 
							<span class="text">
								审核通过
							</span>
						</label>
					</div>
					<div class="radio" style="float:left;margin-top:10px;">
						<label> <input name="status" type="radio"
							class="colored-danger" value="2" checked="checked"> 
							<span class="text">
								审核驳回
							</span>
						</label>
					</div>
				</div>
				</c:if>
				</div>
				<div class="registerbox-caption ">
					<span id="test" style="color: red;"></span>
				</div>
				<div class="registerbox-submit">
					<input type="submit" class="btn btn-primary pull-left" value="修改"
						onclick="sub()">
				</div>
				<div class="registerbox-submit">
					<input type="button" class="btn btn-primary pull-right" value="返回"
						onclick="back()">
				</div>
			</div>
		</div>
	</form>
	<!--Basic Scripts-->
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/jquery-2.0.3.min.js"></script>
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/bootstrap.min.js"></script>

	<!--Beyond Scripts-->
	<script
		src="<%=request.getContextPath()%>/commonadmin/assets/js/beyond.min.js"></script>
	
	<script type="text/javascript">
		function back(){
			location.href="<%=request.getContextPath()%>/admin/index.htm";
		}
	</script>
</body>
<!--Body Ends-->
</html>
